<?php


// 权限
Route::prefix('auth')->group(function () {
    Route::post('/', 'AuthController@login');
    Route::get('/', 'AuthController@me');
});


// 管理员
Route::apiResource('admin', 'AdminController');

// 菜单
Route::get('menus/checked', 'MenusController@getChecked');
Route::apiResource('menus', 'MenusController');

// 权限按钮
Route::apiResource('permission', 'PermissionController');

// 角色
Route::apiResource('role', 'RoleController');
